class Student:
    pass


class student2:
    def __init__(self,name,age,sex,address):
        self.name = name
        self.age = age
        self.sex = sex
        self.address = address

    def course(self):
        print(f"当前学生姓名是：{self.name}，年龄是：{self.age}，性别是：{self.sex}，地址是：{self.address}")

if __name__ == '__main__':
    s1 = student2('张三','19','男','营口')
    print(s1.name)
    student2.course(s1)








